package com.amigo.online.provider.manager.model.entity;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.apache.ibatis.type.Alias;

import com.amigo.online.provider.manager.util.param.dto.PageDto;

@Table(name = "video_tbl")
@Alias(value = "video")
public class Video extends PageDto {

    private static final long serialVersionUID = 1L;
    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Integer userId;

    /**
     * 视频
     */
    @Column(name = "video")
    private String video;

    /**
     * 封面
     */
    @Column(name = "cover")
    private String cover;

    /**
     * 时长
     */
    @Column(name = "duration")
    private Integer duration;

    /**
     * 跳转地址
     */
    @Column(name = "href")
    private String href;

    /**
     * 类型：0为用户上传，2为官方
     */
    @Column(name = "type")
    private Integer type;

    /**
     * 是否是广告
     */
    @Column(name = "ads")
    private Integer ads;

    /**
     * 推荐
     */
    @Column(name = "recommended")
    private Integer recommended;
    /**
     * 经度
     */
    @Column(name = "longitude")
    private String longitude;
    /**
     * 纬度
     */
    @Column(name = "latitude")
    private String latitude;

    /**
     * 点赞数量
     */
    @Column(name = "up")
    private Integer up;

    /**
     * 观看数量
     */
    @Column(name = "look")
    private Integer look;

    /**
     * 评论数量
     */
    @Column(name = "comment")
    private Integer comment;

    /**
     * 是否默认销毁
     */
    @Column(name = "destroy")
    private Integer destroy;
    /**
     * 修改时间
     */
    @Column(name = "updated_time")
    private Long updatedTime;

    /**
     * 删除
     */
    @Column(name = "deleted")
    private Integer deleted;

    /**
     * 删除时间
     */
    @Column(name = "deleted_time")
    private Long deletedTime;
    /**
     * 内容
     */
    @Column(name = "content")
    private String content;
    /**
     * 标题
     */
    @Column(name = "title")
    private String title;

    /**
     * 定位
     */
    @Column(name = "location_id")
    private String locationId;
    /**
     * 音乐id
     */
    @Column(name = "music_id")
    private Long musicId;
    /**
     * 宽度
     */
    @Column(name = "width")
    private Integer width;
    /**
     * 高度
     */
    @Column(name = "height")
    private Integer height;
    /**
     * 分享数量
     */
    @Column(name = "share")
    private Integer share;
    /**
     * 是否热门 1热门 0非热门
     */
    @Column(name = "hot")
    private Integer hot;

    /**
     * 加水印的视频
     */
    @Column(name = "watermark_video")
    private String watermarkVideo;
    /**
     * 地区id
     */
    @Column(name = "area_id")
    private Long areaId;
    /**
     * 是否允许推广 1允许 0禁止
     */
    @Column(name = "is_allowe_promote")
    private Integer isAllowePromote;
    /**
     * 视频权重
     */
    @Column(name = "weight")
    private Double weight;

    @Transient
    private String localAddress;// 本地视频地址

    @Transient
    private String suffix;// 后缀名

    @Transient
    private String account;// 用户账号

    @Transient
    private String email;// 用户邮箱

    @Transient
    private String mobilephone;// 用户手机号码

    @Transient
    private String nickname;// 用户昵称
    /**
     * 视频裁剪尺寸
     * 1为不裁剪
     * 范围 大于0小于等于1
     */
    @Transient
    private Double videoSize;


    public Double getVideoSize() {
        return videoSize;
    }

    public void setVideoSize(Double videoSize) {
        this.videoSize = videoSize;
    }

    public String getWatermarkVideo() {
        return watermarkVideo;
    }

    public void setWatermarkVideo(String watermarkVideo) {
        this.watermarkVideo = watermarkVideo;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public Integer getIsAllowePromote() {
        return isAllowePromote;
    }

    public void setIsAllowePromote(Integer isAllowePromote) {
        this.isAllowePromote = isAllowePromote;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getHot() {
        return hot;
    }

    public void setHot(Integer hot) {
        this.hot = hot;
    }

    public Integer getShare() {
        return share;
    }

    public void setShare(Integer share) {
        this.share = share;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobilephone() {
        return mobilephone;
    }

    public void setMobilephone(String mobilephone) {
        this.mobilephone = mobilephone;
    }

    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }

    public String getLocalAddress() {
        return localAddress;
    }

    public void setLocalAddress(String localAddress) {
        this.localAddress = localAddress;
    }

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public Long getMusicId() {
        return musicId;
    }

    public void setMusicId(Long musicId) {
        this.musicId = musicId;
    }

    public String getLocationId() {
        return locationId;
    }

    public void setLocationId(String locationId) {
        this.locationId = locationId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getAds() {
        return ads;
    }

    public void setAds(Integer ads) {
        this.ads = ads;
    }

    public Integer getRecommended() {
        return recommended;
    }

    public void setRecommended(Integer recommended) {
        this.recommended = recommended;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public Integer getUp() {
        return up;
    }

    public void setUp(Integer up) {
        this.up = up;
    }

    public Integer getLook() {
        return look;
    }

    public void setLook(Integer look) {
        this.look = look;
    }

    public Integer getComment() {
        return comment;
    }

    public void setComment(Integer comment) {
        this.comment = comment;
    }

    public Integer getDestroy() {
        return destroy;
    }

    public void setDestroy(Integer destroy) {
        this.destroy = destroy;
    }

    public Long getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Long updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Long getDeletedTime() {
        return deletedTime;
    }

    public void setDeletedTime(Long deletedTime) {
        this.deletedTime = deletedTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

}
